import request from "@/utils/request";

export function list(query) {
  return request({
    url: "/system/businessSystem/list",
    method: "get",
    params: query,
  });
}

export function add(data) {
  return request({
    url: "/system/businessSystem/add",
    method: "post",
    data,
  });
}

export function edit(data) {
  return request({
    url: "/system/businessSystem/edit",
    method: "post",
    data,
  });
}

export function remove(query) {
  return request({
    url: "/system/businessSystem/remove",
    method: "get",
    params: query,
  });
}

export function getInfo(query) {
  return request({
    url: "/system/businessSystem/getInfo",
    method: "get",
    params: query,
  });
}

export function updateStatus(data) {
  return request({
    url: "/system/businessSystem/updateStatus",
    method: "post",
    data,
  });
}
